package com.xd.server.student.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * (Student)实体类
 *
 * @author xiaodi
 * @since 2023-10-10 09:04:04
 */

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "student")
@ApiModel(value = "com.xd.server.student.po.StudentPO", description = "PO")
public class StudentPO implements Serializable {
    private static final long serialVersionUID = 812237973017547863L;
    /**
     * 学号
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 学生姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 学生年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 学生电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 学生出生年月
     */
    @TableField(value = "birth")
    private Date birth;

    /**
     * 所属班级
     */
    @TableField(value = "gid")
    private String gid;


}
